<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ include file="../general/header.jsp" %>
<script type="text/javascript">$($.date_input.initialize);</script>
		<h3>Crear Evento</h3>
		<div class="menuacciones">
			<a class="boton volver color" href="../notification/viewEvents">Volver</a>
		</div>
		<div class="featurebox_center">
			<form:form method="POST" class="form" action="NewEvent" commandName="eventForm">
				<div class="form-field-large">
					<label>Nombre: </label>
					<form:input path="name" />
					<div class="error"><form:errors path="name" /></div>
					<div class="clear"></div>
				</div>
				<div class="form-field-large">
					<label for="date">Fecha de comienzo: </label>
					<form:input path="date" />
					<span style="display:inline; float:none; font-style:italic;">(31/12/2013 16:30)</span>
					<div class="error"><form:errors path="date" /></div>
					<div class="clear"></div>
				</div>
				<div class="form-field-large">
					<label>Ubicaci&oacute;n: </label>
					<form:input path="location" />
					<div class="error"><form:errors path="location" /></div>
					<div class="clear"></div>
				</div>
				<div class="form-field-large">
					<label>Egresados: </label>
					<form:select path="toUsers" size="8">
						<c:forEach items="${users}" var="user">  
							<option value="${user.id}" >${user.lastName}, ${user.name}</option>  
						</c:forEach>  
					</form:select>
					<div class="error"><form:errors path="toUsers" /></div>
					<div class="clear"></div>
				</div>
				<div class="form-field-large">
					<label>Perfiles de b&uacute;squeda: </label>
					<form:select path="toProfiles" size="4">
						<c:forEach items="${profiles}" var="profile">  
							<option value="${profile.id}" >${profile.name}</option>  
						</c:forEach>  
					</form:select>
					<div class="clear"></div>
				</div>
				<div class="form-field-large">
					<label>Descripci&oacute;n: </label>
					<form:textarea path="description" rows="5"/>
					<div class="error"><form:errors path="description" /></div>
					<div class="clear"></div>
				</div>
				<input class="boton" type="submit" value="Crear Evento" />
			</form:form>
		</div>
	<%@ include file="../general/footer.jsp" %>